class SingleTon {
  static SingleTon _instance;

  SingleTon._();

  // 创建单例
  factory SingleTon.newInstance() {
    if(_instance == null){
      _instance = SingleTon._();
    }
    return _instance;
  }
}